#include <bits/stdc++.h>
using namespace std;

#define RANDOM_NUM 1000000

class student
{
public:
    int ID;
    string name;
    int age;
    float score;

    // 构造函数
    student(int id, string n, int a, float s)
    :age(a), name(n), ID(id), score(s){}
};

vector<student> a;

// 判定及格
bool cmp(const student &s)
{
    return s.score>=60.0;
}

int main(int argc, char const *argv[])
{
    a.push_back(student(1, "张三", 12, 90.5));
    a.push_back(student(2, "李四", 21, 40.5));
    a.push_back(student(3, "王五", 14, 70.5));
    a.push_back(student(4, "孙齐", 18, 30.0));

    // 计算多少个同学考试及格？
    cout << count_if(a.begin(), a.end(), cmp) << endl;
    
    return 0;
}
